package cn.edu.sgu.www.pms.service;

import cn.edu.sgu.www.pms.dto.RoleMenuDTO;
import cn.edu.sgu.www.pms.entity.Menu;
import cn.edu.sgu.www.pms.pager.impl.RoleMenuPager;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface RoleMenuService {

    @Transactional(rollbackFor = Exception.class)
    void save(RoleMenuDTO roleMenuDTO);

    void cancel(RoleMenuDTO roleMenuDTO);

    Page<Menu> selectByRoleId(RoleMenuPager pager);

    Page<Menu> selectUnselected(RoleMenuPager pager);
}